﻿package mortal.game.view.copy.worldBoss
{
    import com.gengine.global.*;
    import com.mui.utils.*;
    import mortal.game.resource.*;
    import mortal.game.scene3D.map3D.util.*;
    import mortal.game.view.copy.worldBoss.pannel.*;
    import mortal.game.view.task.view.base.*;

    public class WorldBossHoleView extends TaskViewBase
    {

        public function WorldBossHoleView()
        {
            super(ResFileConst.worldBoss);
            return;
        }// end function

        override public function layoutUI() : void
        {
            super.layoutUI();
            contentPanel = UICompomentPool.getUICompoment(WorldBossHoleContentPanel) as WorldBossHoleContentPanel;
            addChild(contentPanel);
            return;
        }// end function

        override public function refresh(param1:Boolean = false) : void
        {
            super.refresh(param1);
            if (!allowRefresh)
            {
                return;
            }
            if (!GameMapUtil.curMapState.isHoleBoss)
            {
                return;
            }
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            contentPanel = contentPanel && contentPanel.dispose(param1) ? (null) : (null);
            return;
        }// end function

        override public function stageResize() : void
        {
            super.stageResize();
            x = Global.stage.stageWidth - 246;
            y = 154;
            updateJudgeRect();
            return;
        }// end function

    }
}
